package com.video.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.common.domain.po.Supplier;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author 路亚
 * @version 0.1
 * @className SupplierMapper
 * @description
 * @date 2025/1/3 15:54
 * @since jdk11
 */
@Mapper
public interface SupplierMapper extends BaseMapper<Supplier> {

    @Delete("delete from supplier where id = #{id}")
    void removeById(Long id);

    @Select("select * from supplier where id = #{id}")
    Supplier byId(Long id);
}
